/**
 * 
 */
package com.wgo.precise.client.ui.model;


/**
 * Used to provide definition to wrap around domain model objects' fields, 
 * namely getters and setters.
 * 
 * @author petterei
 * @version $Id: PropertySpecification.java,v 1.1 2006-01-23 19:58:37 petterei Exp $
 */
public abstract class PropertySpecification<T> extends ClientPropertyDefinition<T> {

	private String defaultValue;
	
	public PropertySpecification(Long id, String label, PropertyType propertyType) {
		super(id, label, propertyType);
		Object o = getPropertyType().createNewValue();
		defaultValue = getPropertyType().createStringValue(o);
	}

	@Override
	public String getDefaultValue() {
		return defaultValue;
	}
	
	@Override
	public void setDefaultValue(String defaultValue) {
		this.defaultValue = defaultValue;
	}
	
}
